package org.example.iterator;

import org.example.composite.OrganizationComponent;

/**
 * @author wangbin
 * @date 2024/4/18
 * @vesion 1.0
 */
public class Department extends OrganizationComponent {
    public Department(String name, String dec) {
        super(name, dec);
    }

    @Override
    public String getName() {
        return super.getName();
    }

    @Override
    public String getDec() {
        return super.getDec();
    }

    @Override
    protected void print() {
        System.out.println(this.getName());

    }
}
